using cframework_coroutineutil;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TestButton : MonoBehaviour
{
    public Button btn0;
    public Button btn1;


    // Start is called before the first frame update
    IEnumerator Start()
    {
        yield return new WaitAll(btn0.WaitOnClick(), btn1.WaitOnClick());
        Debug.LogError("wait all clicked");

        yield return new WaitAny(btn0.WaitOnClick(), btn1.WaitOnClick());
        Debug.LogError("wait any clicked");
    }

}
